package com.sf.fy.uav.common.enums;

import lombok.Getter;

/**
 * @author LTQ
 */
@Getter
public enum FirmClientStatusEnum {
    /**
     *
     */
    AWAIT_AUDIT((byte)0, "待审核"),
    REVIEW_REJECT ((byte)1, "审核驳回"),
    NORMAL((byte)2, "正常"),
    STOP_COOPERATION((byte)3, "停止合作");
    private final Byte status;
    private final String name;


    FirmClientStatusEnum(Byte status, String name) {
        this.status = status;
        this.name = name;
    }
    public static String getName(Byte value) {
        for (FirmClientStatusEnum ele : values()) {
            if (ele.getStatus().equals(value)) {
                return ele.getName();
            }
        }
        return null;
    }

}
